<template>
	<div class="app">
		<h1>我是App组件</h1>
		<Child/>
	</div>
</template>

<script>
	import Child from './components/Child'
	export default {
		name:'App',
		components:{Child},
		mounted() {
			this.$bus.$on('qwe',(value)=>{
				console.log('$bus上的qwe事件被触发了',value)
			})
		},
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>